package com.springcloud.gateway.service;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.alibaba.fastjson.JSONObject;

/**
 * @FeignClient(value=注册中心提供服务的名称,fallback=实现本接口的异常类)
 * @author Administrator
 *
 */
@FeignClient(value="login-authentication",fallback=SchedualServiceHiHystrix.class)
public interface FeignService {

	/**
	 * 登录接口
	 * @param name	
	 * @param pwd
	 * @return
	 */
	@RequestMapping("/api/authorization/login")
	public JSONObject login(@RequestParam("name")String name,@RequestParam("pwd")String pwd);
	
	/**
	 * 登录接口
	 * @param name	
	 * @param pwd
	 * @return
	 */
	@RequestMapping("/api/authorization/validToken") 
	public JSONObject verification(@RequestParam("token")String token,@RequestParam("type")String type);

}
